*use dataset: jop_constraint_analysis.dta

********Table 1: Legislative Politics Hypothesis******
logit time_review  times_prev_reviewed  c.dist_current_cong_court_ba##c.dist_current_pres_congress_ba dist_current_cong_issuing_cong  landmark  agecsp1 agecsp2 agecsp3 agecsp4 ln_law_length current_unemp current_presapprove current_public_mood i.majortopic if commemorative == 0 , cluster(id)

**Marginal Effects for Figure 1
margins, dydx(dist_current_cong_court_ba) at(dist_current_pres_congress_ba==(.315(0.10)2.61)) level(90)


*******Table 2: Non-Enforcement Hypothesis******
logit time_review  times_prev_reviewed dist_current_pres_court_ba dist_current_cong_court_ba  dist_current_pres_congress_ba dist_current_cong_issuing_cong  landmark agecsp1 agecsp2 agecsp3 agecsp4 ln_law_length current_unemp  current_presapprove current_public_mood i.majortopic if commemorative == 0, cluster(id)


*******Table 3: Public Opinion Hypothesis******
*column 1: President-Public Alignment = 1
logit time_review  times_prev_reviewed c.dist_current_pres_court_ba##i.high_salience dist_current_cong_court_ba  dist_current_pres_congress_ba dist_current_cong_issuing_cong landmark agecsp1 agecsp2 agecsp3 agecsp4 ln_law_length current_unemp  current_presapprove current_public_mood i.majortopic if commemorative == 0 & pres_public_align == 1 , cluster(id)

*Marginal Effects for Figure 2, Panel A
margins, dydx(dist_current_pres_court_ba) at(high_salience==(0 1)) level(90)

*Column 2: President-Public Alignment = 0
logit time_review  times_prev_reviewed c.dist_current_pres_court_ba##i.high_salience dist_current_cong_court_ba  dist_current_pres_congress_ba dist_current_cong_issuing_cong landmark agecsp1 agecsp2 agecsp3 agecsp4 ln_law_length current_unemp  current_presapprove current_public_mood i.majortopic if commemorative == 0 & pres_public_align == 0 , cluster(id)

*Marginal Effects for Figure 2, Panel B
margins, dydx(dist_current_pres_court_ba) at(high_salience==(0 1)) level(90)


*******Table 4: Agency Independence Hypothesis********
*Column 1: Decision-Maker Independence 
logit time_review  times_prev_reviewed c.dist_current_pres_court_ba##c.selindim1 dist_current_cong_court_ba  dist_current_pres_congress_ba dist_current_cong_issuing_cong  landmark agecsp1 agecsp2 agecsp3 agecsp4 ln_law_length current_unemp current_presapprove current_public_mood i.majortopic if commemorative == 0, cluster(id)

*Column 2: Policy Decisions Independence
logit time_review  times_prev_reviewed c.dist_current_pres_court_ba##c.selindim2 dist_current_cong_court_ba  dist_current_pres_congress_ba dist_current_cong_issuing_cong  landmark agecsp1 agecsp2 agecsp3 agecsp4 ln_law_length current_unemp current_presapprove current_public_mood i.majortopic if commemorative == 0, cluster(id)

*Marginal Effects for Figure 3
margins, dydx(dist_current_pres_court_ba) at(selindim2==(-.692 (0.15) 2.235)) level(90)
